package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author quankk
 * @since 2019-07-17
 */

public class DealerOrganizationDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ORGANIZATION_ID
     */
        private Integer orgdeptId;
        /**
     * 经销商代码
     */
        private String dealerCode;
            private Integer parentOrgId;
        /**
     * 维持递归关系的外键
     */
        private String parentOrgCode;
        /**
     * 组织代码
     */
        private String orgCode;
        /**
     * 组织名称
     */
        private String orgName;
        /**
     * 组织名称缩写
     */
        private String orgShortName;
        /**
     * 组织描述
     */
        private String orgDesc;
        /**
     * 展厅
            二级网点
            一般组织

     */
        private Integer orgType;
        /**
     * 有效，无效
     */
        private Integer isValid;
        /**
     * 数据来源
     */
        private Integer dataSource;
        /**
     * 所属范围
     */
        private Integer dataType;
        /**
     * 数据参考模板ID(主要用于经销商集团创建的部门模板)
     */
        private Integer dataTemplateId;
        /**
     * 省份
     */
        private String province;
        /**
     * 城市
     */
        private String city;
        /**
     * 区县
     */
        private String district;
        /**
     * 地址
     */
        private String address;
        /**
     * 联系人
     */
        private String linkman;
        /**
     * 联系电话
     */
        private String phone;
        /**
     * 开户银行
     */
        private String depositbank;
        /**
     * 银行账号
     */
        private String bankaccount;
        /**
     * 邮箱
     */
        private String email;
        /**
     * 传真
     */
        private String fax;
        /**
     * 参照编码
     */
        private String referCode;
        /**
     * 是否下发
     */
        private Integer isissue;
        /**
     * 证件号
     */
        private String certificateNo;
            private String teleBack;
        /**
     * 该部门商品是否需要审核：是代表需要审核，否不需要审核
     */
        private Integer isPartAudit;
            private Integer orgLevel;
            private Boolean isDeleted;

    public DealerOrganizationDTO() {
        super();
    }




    public Integer getOrgdeptId() {
        return orgdeptId;
    }


    public void setOrgdeptId(Integer orgdeptId) {
        this.orgdeptId = orgdeptId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public Integer getParentOrgId() {
        return parentOrgId;
    }


    public void setParentOrgId(Integer parentOrgId) {
        this.parentOrgId = parentOrgId;
    }



    public String getParentOrgCode() {
        return parentOrgCode;
    }


    public void setParentOrgCode(String parentOrgCode) {
        this.parentOrgCode = parentOrgCode;
    }



    public String getOrgCode() {
        return orgCode;
    }


    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }



    public String getOrgName() {
        return orgName;
    }


    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }



    public String getOrgShortName() {
        return orgShortName;
    }


    public void setOrgShortName(String orgShortName) {
        this.orgShortName = orgShortName;
    }



    public String getOrgDesc() {
        return orgDesc;
    }


    public void setOrgDesc(String orgDesc) {
        this.orgDesc = orgDesc;
    }



    public Integer getOrgType() {
        return orgType;
    }


    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }



    public Integer getIsValid() {
        return isValid;
    }


    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }



    public Integer getDataSource() {
        return dataSource;
    }


    public void setDataSource(Integer dataSource) {
        this.dataSource = dataSource;
    }



    public Integer getDataType() {
        return dataType;
    }


    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }



    public Integer getDataTemplateId() {
        return dataTemplateId;
    }


    public void setDataTemplateId(Integer dataTemplateId) {
        this.dataTemplateId = dataTemplateId;
    }



    public String getProvince() {
        return province;
    }


    public void setProvince(String province) {
        this.province = province;
    }



    public String getCity() {
        return city;
    }


    public void setCity(String city) {
        this.city = city;
    }



    public String getDistrict() {
        return district;
    }


    public void setDistrict(String district) {
        this.district = district;
    }



    public String getAddress() {
        return address;
    }


    public void setAddress(String address) {
        this.address = address;
    }



    public String getLinkman() {
        return linkman;
    }


    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }



    public String getPhone() {
        return phone;
    }


    public void setPhone(String phone) {
        this.phone = phone;
    }



    public String getDepositbank() {
        return depositbank;
    }


    public void setDepositbank(String depositbank) {
        this.depositbank = depositbank;
    }



    public String getBankaccount() {
        return bankaccount;
    }


    public void setBankaccount(String bankaccount) {
        this.bankaccount = bankaccount;
    }



    public String getEmail() {
        return email;
    }


    public void setEmail(String email) {
        this.email = email;
    }



    public String getFax() {
        return fax;
    }


    public void setFax(String fax) {
        this.fax = fax;
    }



    public String getReferCode() {
        return referCode;
    }


    public void setReferCode(String referCode) {
        this.referCode = referCode;
    }



    public Integer getIsissue() {
        return isissue;
    }


    public void setIsissue(Integer isissue) {
        this.isissue = isissue;
    }



    public String getCertificateNo() {
        return certificateNo;
    }


    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo;
    }



    public String getTeleBack() {
        return teleBack;
    }


    public void setTeleBack(String teleBack) {
        this.teleBack = teleBack;
    }



    public Integer getIsPartAudit() {
        return isPartAudit;
    }


    public void setIsPartAudit(Integer isPartAudit) {
        this.isPartAudit = isPartAudit;
    }



    public Integer getOrgLevel() {
        return orgLevel;
    }


    public void setOrgLevel(Integer orgLevel) {
        this.orgLevel = orgLevel;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "DealerOrganizationDTO{" +
        "orgdeptId=" + orgdeptId +
        ", dealerCode=" + dealerCode +
        ", parentOrgId=" + parentOrgId +
        ", parentOrgCode=" + parentOrgCode +
        ", orgCode=" + orgCode +
        ", orgName=" + orgName +
        ", orgShortName=" + orgShortName +
        ", orgDesc=" + orgDesc +
        ", orgType=" + orgType +
        ", isValid=" + isValid +
        ", dataSource=" + dataSource +
        ", dataType=" + dataType +
        ", dataTemplateId=" + dataTemplateId +
        ", province=" + province +
        ", city=" + city +
        ", district=" + district +
        ", address=" + address +
        ", linkman=" + linkman +
        ", phone=" + phone +
        ", depositbank=" + depositbank +
        ", bankaccount=" + bankaccount +
        ", email=" + email +
        ", fax=" + fax +
        ", referCode=" + referCode +
        ", isissue=" + isissue +
        ", certificateNo=" + certificateNo +
        ", teleBack=" + teleBack +
        ", isPartAudit=" + isPartAudit +
        ", orgLevel=" + orgLevel +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "orgdeptId");
    }

}
